﻿@inherits Project.Module.View.ProductView
@{
    ViewBag.Title = "Nguyên liệu làm bánh";
    Layout = "~/Views/Home/_Master.cshtml";
}
<div id="noidung">
    <h1>Nguyên liệu làm bánh</h1>
    @{
        if (this.nguyenLieuLamBanh != null && this.nguyenLieuLamBanh.ToList().Count > 0)
        {
            foreach (var item in this.nguyenLieuLamBanh)
            {
        <div class="node">
            <a href="/nguyen-lieu-lam-banh?id=@item.ProductId?@item.url"><h3>@item.ProductName</h3></a>
            <h4>@{
                string status = "Chưa sẵn sàng";
                if(@item.ProductStatus == true){
                    status = "Sẵn sàng";   
                }}
                @status
            </h4>
            <a href="/nguyen-lieu-lam-banh?id=@item.ProductId?@item.url"><img src="@item.ImagePath" alt="" /></a>
            <h3>@item.priceProduct VNĐ</h3>
            <a href="/gio-hang?name=@this.displayuser?add=@item.ProductId">Mua hàng</a>
        </div>
    <!--end .node-->
            }
        }
    }
    <div class="trang">
        <a href="nguyenlieutrangtri.html">1</a> <a href="nguyenlieutrangtri.html">2</a>
        <a href="nguyenlieutrangtri.html">3</a></div>
</div>
<!--end #noidung-->


